#ifndef __MPU6050_H_
#define __MPU6050_H_
/*
typedef struct
{
	int16_t GyroZ;
	int16_t GyroY;
	int16_t GyroX;
	int16_t Temp;
	int16_t AccZ;
	int16_t AccY;
	int16_t AccX;
}MPU6050DatasTypeDef;*/

typedef struct
{
	int16_t AccX;
	int16_t AccY;
	int16_t AccZ;
	int16_t Temp;
	int16_t GyroX;
	int16_t GyroY;
	int16_t GyroZ;
}MPU6050DatasTypeDef;

void MPU6050_Init();
void MPU6050_WriteReg(uint8_t RegAddress,uint8_t Data);
uint8_t MPU6050_limitedReadReg();
uint8_t MPU6050_ReadReg(uint8_t RegAddress);
void MPU6050_GetData(MPU6050DatasTypeDef* MPU6050DatasStruct);


#endif